﻿using HZU.ZP.Data.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace HZU.ZP.Data.Interfaces
{
    public interface ICollectRecordDao
    {
        /// <summary>
        /// 新增职位收藏记录
        /// </summary>
        /// <param name="collectRecord"></param>
        void Add(CollectRecord collectRecord);
        /// <summary>
        /// 删除职位收藏记录
        /// </summary>
        /// <param name="id"></param>
        void Delete(int appliacntId, int positionId);
        /// <summary>
        /// 根据条件获取获取收藏记录
        /// </summary>
        /// <param name="appliacntId"></param>
        /// <param name="positionId"></param>
        /// <returns></returns>
        CollectRecord Get(int appliacntId, int positionId);
        /// <summary>
        /// 根据条件获取收藏记录列表
        /// </summary>
        /// <param name="appliacntId"></param>
        /// <returns></returns>
        IList<Position> Get(string sql);
    }
}
